GXPostScriptGetPrinterGlyphsInformation
QuickDraw GX sends theGXPostScriptGetPrinterGlyphsInformation
message to allow a printing extension or printer driver to communicate with the imaging system about the fonts and glyphs that are resident in the output device. You can override theGXPostScriptGetPrinterGlyphsInformation
message if you are doing your own font management. Your override of theGXPostScriptGetPrinterGlyphsInformation
message must match the following formal declaration:
OSErr MyPostScriptGetPrinterGlyphsInformation ( gxPrinterGlyphsRec *glyphPtr);
glyphPtr
- A pointer to a PostScript glyphs structure.
- function result
- An error code. The value
noErr
indicates that the operation was successful.DESCRIPTION
The PostScript imaging system sends theGXPostScriptGetPrinterGlyphsInformation
message before it starts to image a document. It uses the information gathered by this message to determine which fonts or which glyphs in a font need to be downloaded to the printer for the document to be printed.On entry to this message, the
theFont
field of the PostScript glyphs structure, of data typegxPrinterGlyphsRec
, must be filled in with a valid font reference to the font
for which information is desired. You can fill in theplatform
,script
, andlanguage
fields of the PostScript glyphs structure to tell the imaging system which glyphs from a font are present in the printer.If the
platform
field of the structure has the value-1
, then thescript
andlanguage
field values are ignored, and theglyphBits
array is filled in with the glyphs that are actually present for the font.If the
platform
field of the structure has any value other than-1
, then theplatform
,script
, andlanguage
fields together define how the imaging system maps glyphs into the printer's encoding scheme.The default implementation of the
GXPostScriptGetPrinterGlyphsInformation
message uses the information that was gathered by theGXPostScriptQueryPrinter
message to fill out the PostScript glyphs structure. It also looks for a'pfnt'
resource that has the same font name as that in thetheFont
field of the structure and gathers information from that resource.SPECIAL CONSIDERATIONS
You must forward theGXPostScriptGetPrinterGlyphsInformation
message.RESULT CODES
The default implementation of the
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. GXPostScriptGetPrinterGlyphsInformation
message can also return the communications errors that are listed in Table 4-2 on page 4-42.SEE ALSO
The PostScript glyphs structure is described on page 4-28.The
GXPostScriptQueryPrinter
messages is described on page 4-101.The PostScript printer font (
'pfnt'
) resource is described on page 6-84 in the chapter "Printing Resources."For more information about how the imaging system maps glyphs, read about the
'cmap'
table in the book Inside Macintosh: QuickDraw GX Typography.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help